Function at 0x542160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x542d1b
sub esp, 0x98
mov eax, dword [esp + 0xac]
cmp eax, 3
jge 0x542b7a
jge 0x542999
cmp eax, 2
jne 0x54298a
mov ecx, dword [esp + 0xa8]
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x542912
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x542909
mov ebx, dword [esp + 0xb0]
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x40], edx
lea eax, [0x7d8900]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x553920]
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 8], ecx
mov edx, dword [0xb92b90]
test edx, edx
jne 0x5428ea
mov edx, dword [esp + 0xa8]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x34]
mov dword [eax + 0xc], ebx
mov ebp, dword [esp + 0x40]
test ebp, ebp
jne 0x54265b
lea edi, [esp + 0x70]
lea esi, [0x8b3e90]
call fcn.0044cf6e
mov eax, dword [esp + 0xac]
cmp eax, 3
jge 0x54249e
jge 0x542386
cmp eax, 2
jne 0x542381
movzx ecx, word [edx]
cmp cx, 0x7069
jne 0x542358
lea eax, [0x7dd1a0]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 4]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov eax, dword [0xb92b90]
test eax, eax
jne 0x54234c
mov dword [edi], edx
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x542339
mov dword [edi + 0xc], eax
lea eax, [0x8b48f0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], edi
lea ecx, [0x7a01e0]
mov dword [esp], ecx
call fcn.00409c40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x542327
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0x98
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0044c990
mov eax, ecx
jmp 0x5422ed
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.0044c990
mov edi, edx
jmp 0x5422b6
mov eax, edx
call fcn.0044c990
jmp 0x542297
cmp eax, 3
jne 0x542cb9
movzx ecx, word [edx]
cmp cx, 0x7069
jne 0x542cb9
movzx ecx, byte [edx + 2]
cmp cl, 0x34
je 0x542263
jmp 0x542cb9
cmp eax, 3
jmp 0x54235b
je 0x54244b
jne 0x5423ac
movzx ecx, word [edx]
cmp cx, 0x7069
jne 0x542443
movzx ecx, byte [edx + 2]
cmp cl, 0x36
je 0x542263
cmp eax, 3
jne 0x542cb9
movzx ecx, word [edx]
cmp cx, 0x6374
jne 0x542cb9
movzx ecx, byte [edx + 2]
cmp cl, 0x70
jne 0x542cb9
lea eax, [0x7ec740]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov eax, dword [0xb92b90]
test eax, eax
jne 0x54243a
mov dword [edi], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x54242a
mov dword [edi + 0x10], eax
lea eax, [0x8b4930]
jmp 0x5422bc
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.0044c990
mov edi, edx
jmp 0x54241f
mov eax, ecx
call fcn.0044c990
jmp 0x5423fd
cmp eax, 3
jmp 0x5423ac
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [0x83338e]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x542484
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
jmp 0x54224c
mov eax, dword [esp + 0xac]
cmp eax, 3
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x54238c
je 0x542604
cmp eax, 4
jge 0x542569
cmp eax, 3
jne 0x542564
movzx ecx, word [edx]
cmp cx, 0x6475
jne 0x54255f
movzx ecx, byte [edx + 2]
cmp cl, 0x70
jne 0x542543
lea eax, [0x7ec7c0]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 4]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov eax, dword [0xb92b90]
test eax, eax
jne 0x54253a
mov dword [edi], edx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [edi + 0x14], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x54252a
mov dword [edi + 0x10], eax
lea eax, [0x8b4950]
jmp 0x5422bc
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.0044c990
mov edi, edx
jmp 0x54251f
mov eax, edx
call fcn.0044c990
jmp 0x5424fd
cmp eax, 4
jne 0x542cb9
mov ecx, dword [edx]
cmp ecx, 0x34706374
je 0x5423cd
jmp 0x542cb9
cmp eax, 4
jmp 0x542546
cmp eax, 4
jmp 0x542546
je 0x5425aa
jne 0x54257e
mov ecx, dword [edx]
cmp ecx, 0x36706374
je 0x5423cd
cmp eax, 4
jne 0x542591
mov ecx, dword [edx]
cmp ecx, 0x34706475
je 0x5424cd
cmp eax, 4
jne 0x542cb9
mov ecx, dword [edx]
cmp ecx, 0x36706475
je 0x5424cd
jmp 0x542cb9
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [0x833ac5]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 4
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5425ea
mov eax, dword [esp + 0xac]
cmp eax, 3
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x5424b0
mov eax, dword [esp + 0xac]
cmp eax, 4
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x54256b
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [0x833403]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x542644
mov eax, dword [esp + 0xac]
cmp eax, 3
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x542246
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x5424a4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
call fcn.00543f10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
test edx, edx
jne 0x5428b4
cmp ebp, 1
je 0x542778
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x54276f
mov edx, dword [esp + 0xa8]
movzx esi, byte [edx + ecx - 1]
xchg esi, eax
cmp al, 0x34
xchg esi, eax
jne 0x542763
test ecx, ecx
lea esi, [0x859388]
je 0x54275f
movzx ecx, byte [edx + ecx - 1]
cmp cl, 0x36
jne 0x54275f
lea ecx, [0x85938c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.005415c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ecx
add esp, 0x98
ret
mov ecx, esi
jmp 0x5426f5
test ecx, ecx
mov esi, 0
jmp 0x5426e3
mov edx, dword [esp + 0xa8]
jmp 0x542765
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [0xb79014]
mov edx, dword [0xb79010]
mov ebx, dword [0xb79018]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.0053db90
movzx eax, byte [esp + 0x18]
test al, al
je 0x5428a3
lea edi, [esp + 0x84]
xor eax, eax
call fcn.0044ca8b
mov ecx, dword [0xb80bd8]
mov edx, dword [0xb80bdc]
mov ebx, dword [0xb80be0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x3c]
cmp edx, ebx
jg 0x542869
mov eax, dword [esp + 0x50]
lea ecx, [ecx + ecx*4]
mov ebp, dword [0xb92b90]
lea edi, [eax + ecx*4]
test ebp, ebp
jne 0x542832
lea esi, [esp + 0x84]
call fcn.0044cf6e
mov ebp, edx
jmp 0x5426b5
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebx
lea eax, [0x7dd1a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.0040f640
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x54282b
lea eax, [0x7dd1a0]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00438ba0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x38]
jmp 0x54280f
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
jmp 0x5426b5
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
add esp, 0x98
ret
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0xa8]
call fcn.0044c990
mov eax, edx
mov edx, dword [esp + 0xa8]
jmp 0x542214
xor edx, edx
xor ebx, ebx
jmp 0x5421ca
cmp eax, 3
jne 0x54292e
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x54292e
movzx edx, byte [ecx + 2]
cmp dl, 0x34
je 0x5421b4
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x8b3930]
mov dword [esp], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.00407790
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
add esp, 0x98
ret
cmp eax, 3
mov ecx, dword [esp + 0xa8]
jmp 0x542915
je 0x542b32
jne 0x542b26
mov ecx, dword [esp + 0xa8]
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x542b1e
movzx edx, byte [ecx + 2]
cmp dl, 0x36
je 0x5421b4
cmp eax, 3
jne 0x54292e
movzx edx, word [ecx]
cmp dx, 0x6374
jne 0x54292e
movzx edx, byte [ecx + 2]
cmp dl, 0x70
jne 0x54292e
mov edx, dword [esp + 0xb4]
test edx, edx
jne 0x542a07
xor edx, edx
xor ebx, ebx
xor ebp, ebp
mov esi, ebp
mov ebp, edx
mov edx, esi
jmp 0x5421cc
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005418f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
test ebp, ebp
jne 0x542ae8
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ebx
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xa4]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xa8]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.005448f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x542ab2
mov ecx, dword [esp + 0xa8]
mov edx, eax
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0xac]
jmp 0x5429fc
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
add esp, 0x98
ret
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], esi
add esp, 0x98
ret
cmp eax, 3
jmp 0x5429ca
mov ecx, dword [esp + 0xa8]
jmp 0x5429ca
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x83338e]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x542b6b
mov eax, dword [esp + 0xac]
jmp 0x542196
mov eax, dword [esp + 0xac]
cmp eax, 3
jmp 0x54299f
je 0x542c71
cmp eax, 4
jge 0x542bd5
cmp eax, 3
jne 0x542bc9
mov ecx, dword [esp + 0xa8]
movzx edx, word [ecx]
cmp dx, 0x6475
jne 0x542bc4
movzx edx, byte [ecx + 2]
cmp dl, 0x70
je 0x5429eb
cmp eax, 4
jne 0x54292e
mov edx, dword [ecx]
cmp edx, 0x34706374
je 0x5429eb
jmp 0x54292e
cmp eax, 4
jmp 0x542bab
cmp eax, 4
mov ecx, dword [esp + 0xa8]
jmp 0x542bab
je 0x542c26
jne 0x542c1d
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx]
cmp edx, 0x36706374
je 0x5429eb
cmp eax, 4
jne 0x542c04
mov edx, dword [ecx]
cmp edx, 0x34706475
je 0x5429eb
cmp eax, 4
jne 0x54292e
mov edx, dword [ecx]
cmp edx, 0x36706475
je 0x5429eb
jmp 0x54292e
mov ecx, dword [esp + 0xa8]
jmp 0x542bf1
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x833ac5]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x542c62
mov eax, dword [esp + 0xac]
cmp eax, 3
jmp 0x542b88
mov eax, dword [esp + 0xac]
cmp eax, 4
jmp 0x542bd7
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x833403]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x542cad
mov eax, dword [esp + 0xac]
cmp eax, 3
jmp 0x542190
mov eax, dword [esp + 0xac]
jmp 0x542b80
mov dword [esp], 0
lea ecx, [0x83da55]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.0043bd30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x7b48a0]
mov dword [esp], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.004074b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004273c0
ud2
call fcn.0044b230
jmp fcn.00542160