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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov eax, dword [ecx + 0x40]
mov esi, dword [ebx]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], eax
test eax, eax
je 0x4df160
cmp dword [eax], esi
je 0x4df15c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4df151
mov dword [esp + 0x40], eax
movsx eax, word [ecx + 0x2a]
mov ecx, dword [ebx + 0x28]
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x18], eax
lea eax, [ecx + 1]
mov dword [esp + 0x34], 0
mov dword [ebx + 0x28], eax
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
cmp dword [edi + 0x70], edx
jg 0x4df1af
push 0
push dword [esp + 0x20]
mov edx, 0x64
push ecx
mov ecx, edi
call fcn.004959f0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4df1e2
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x2c]
push 0
lea ecx, [eax + 1]
add eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x2c], eax
cmp dword [ecx], 1
jle 0x4df3f4
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4df21b
push 0
mov ecx, esi
call fcn.004ac6d0
add esp, 8
mov dword [esp + 0x30], eax
jmp 0x4df271
mov ecx, dword [ebx]
push 0x34
call fcn.00476a20
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
test esi, esi
je 0x4df271
push 0x34
push 0
push esi
call fcn.005cc450
add esp, 0xc
mov byte [esi], 0x4b
or eax, 0xffffffff
mov edx, esi
mov word [esi + 0x22], ax
mov ecx, dword [ebx]
push 0
push 0
call fcn.004ac070
mov eax, dword [ebx]
add esp, 8
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4df271
push eax
push str.SCopy
push ebx
call fcn.00479ca0
add esp, 0xc
mov eax, dword [ebx]
mov ecx, eax
push 0
push 0x18
mov dword [esp + 0x34], eax
call fcn.00476a20
mov esi, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
add esp, 8
test esi, esi
je 0x4df2ab
mov dword [esi], 0
xorps xmm0, xmm0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
mov dword [esi + 4], eax
jmp 0x4df2c0
test eax, eax
je 0x4df2ba
mov ecx, dword [esp + 0x2c]
mov edx, eax
call fcn.004ac4d0
xor esi, esi
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x30], ecx
cmp dx, word [eax + 0x2a]
jge 0x4df3bd
mov edi, dword [esp + 0x38]
nop dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x4df32f
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 4]
test edx, edx
je 0x4df31b
push 0
push 0
mov ecx, edi
call fcn.004ac6d0
add esp, 8
mov edx, esi
mov ecx, ebx
push eax
call fcn.004ad250
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x4df39e
xor eax, eax
mov edx, esi
push eax
mov ecx, ebx
call fcn.004ad250
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x4df39e
mov ecx, dword [ebx]
push 0
push 0x34
call fcn.00476a20
mov esi, eax
add esp, 8
test esi, esi
je 0x4df38c
push 0x34
push 0
push esi
call fcn.005cc450
add esp, 0xc
mov byte [esi], 0x4b
or eax, 0xffffffff
mov edx, esi
mov word [esi + 0x22], ax
mov ecx, dword [ebx]
push 0
push 0
call fcn.004ac070
mov eax, dword [ebx]
add esp, 8
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4df383
push eax
push str.SCopy
push ebx
call fcn.00479ca0
add esp, 0xc
mov eax, dword [esp + 0x30]
inc eax
mov word [esi + 0x20], ax
mov edx, dword [esp + 0x28]
mov ecx, ebx
push esi
call fcn.004ad250
mov esi, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
movsx eax, word [eax + 0x2a]
cmp ecx, eax
jl 0x4df2e0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
sub esp, 8
mov ecx, ebx
push dword [ebp + 0x18]
push dword [esp + 0x48]
push esi
push 0
call fcn.004dc9e0
add esp, 0x18
test esi, esi
je 0x4df3e7
mov ecx, dword [esp + 0x38]
mov edx, esi
call fcn.004ad5b0
mov dword [esp + 0x20], 0
jmp 0x4df8a4
push 4
inc eax
mov edx, ecx
push 0
mov dword [esp + 0x38], eax
mov ecx, ebx
inc eax
push 0
push dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov dword [ebx + 0x2c], eax
call fcn.004ed370
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
je 0x4dfb12
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax + 0x2a]
jge 0x4df4bf
mov ecx, dword [esp + 0x10]
mov edx, 0xfffffffe
mov eax, dword [ebp + 0x14]
sub edx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov eax, dword [eax]
test eax, eax
js 0x4df4f7
cmp dword [ebx + 8], 0
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 4]
mov dword [esp + 0x44], eax
je 0x4df4a4
push esi
mov edx, eax
mov ecx, ebx
call fcn.004b0910
add esp, 4
cmp eax, esi
je 0x4df4a0
mov edx, dword [esp + 0x44]
mov ecx, dword [ebx + 8]
push esi
push eax
mov edx, dword [edx + 4]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
call fcn.00495b60
add esp, 8
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
inc esi
add dword [esp + 0x38], 4
movsx eax, word [eax + 0x2a]
lea ecx, [edx + esi]
cmp ecx, eax
mov eax, dword [esp + 0x38]
jl 0x4df450
mov eax, dword [ebp + 8]
test byte [eax + 0x24], 0x80
jne 0x4df614
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df570
push 0
push dword [esp + 0x14]
mov edx, 0x7f
mov ecx, edi
push dword [esp + 0x20]
call fcn.004959f0
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x4df5a3
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df51d
lea eax, [edx + esi]
mov ecx, edi
push esi
push eax
push dword [esp + 0x20]
mov edx, 0xa6
call fcn.004959f0
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4df54c
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xa6
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
lea eax, [edx + esi]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4df4a4
lea ecx, [eax + eax*4]
mov ebx, 1
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], bx
mov ebx, dword [esp + 0x24]
jmp 0x4df4a4
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4df5f9
cmp dword [ebx + 8], 0
mov edx, dword [esp + 0x10]
lea eax, [edx + 1]
je 0x4df6e6
push eax
mov edx, esi
mov ecx, ebx
call fcn.004b0910
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [edx + 1]
cmp eax, ecx
je 0x4df6e6
mov edx, dword [esi + 4]
and edx, 0x200000
neg edx
push ecx
mov ecx, dword [ebx + 8]
sbb edx, edx
push eax
add edx, 0x4e
call fcn.00495b60
add esp, 8
jmp 0x4df6e2
mov eax, dword [esp + 0x10]
mov ecx, edi
inc eax
push eax
push edx
mov edx, 0x7f
call fcn.00495b60
add esp, 8
jmp 0x4df6e2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4df630
nop dword [eax + eax]
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4df630
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4df620
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 0x6c]
movzx eax, word [eax]
movsx esi, ax
cmp dword [edi + 0x70], ecx
jg 0x4df65b
push dword [esp + 0x10]
mov edx, 0xa6
mov ecx, edi
push esi
push dword [esp + 0x20]
call fcn.004959f0
add esp, 0xc
jmp 0x4df68a
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xa6
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
add esi, 2
mov ecx, dword [edi + 0x6c]
add esi, eax
lea edx, [eax + 1]
cmp dword [edi + 0x70], ecx
jg 0x4df6b3
push 0
push edx
push esi
mov edx, 0x4e
mov ecx, edi
call fcn.004959f0
add esp, 0xc
jmp 0x4df6e2
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
movzx esi, byte [eax + 0x2e]
mov dword [esp + 0x20], esi
test esi, esi
je 0x4df786
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4df732
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea esi, [eax + ecx*4]
mov ecx, dword [edi]
call fcn.00496640
mov word [esi], 0xad
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df756
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x74
mov ecx, edi
call fcn.004959f0
add esp, 0xc
jmp 0x4df89c
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
jmp 0x4df894
mov eax, dword [ebx + 0x74]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df7b6
push dword [esp + 0x2c]
mov ecx, edi
push dword [esp + 0x20]
push edx
mov edx, 0x5b
call fcn.004959f0
add esp, 0xc
jmp 0x4df7e9
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df810
push 0
push dword [esp + 0x34]
mov edx, 0x78
mov ecx, edi
push dword [esp + 0x1c]
call fcn.004959f0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x4df847
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df869
push dword [esp + 0x30]
mov ecx, edi
push dword [esp + 0x30]
push edx
mov edx, 0x79
call fcn.004959f0
add esp, 0xc
jmp 0x4df89c
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test esi, esi
jne 0x4df97f
mov eax, dword [esp + 0x3c]
cmp dword [eax], 1
jne 0x4df8b6
mov ecx, dword [esp + 0x34]
call fcn.004ede70
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x28], edx
cmp dword [edi + 0x70], edx
jg 0x4df8df
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x25
mov ecx, edi
call fcn.004959f0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4df912
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4df97b
mov ebx, dword [esp + 0x14]
nop
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4df942
mov eax, dword [esp + 0x10]
mov edx, 0x59
add eax, esi
mov ecx, edi
push eax
push esi
push ebx
call fcn.004959f0
add esp, 0xc
jmp 0x4df970
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], esi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4df920
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004e1fb0
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x4df9ae
push dword [esp + 0x10]
mov edx, 0xa
mov ecx, edi
push dword [esp + 0x20]
push 0
call fcn.004959f0
add esp, 0xc
mov edx, eax
jmp 0x4df9e5
mov esi, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff4
push dword [esp + 0x44]
mov ecx, edi
call fcn.004968e0
mov ecx, dword [edi + 0x6c]
add esp, 8
test ecx, ecx
jle 0x4dfa1d
mov eax, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
movzx edx, ax
cmp eax, 0xb
mov eax, dword [edi + 0x68]
mov dword [esp + 0x44], 2
cmove edx, dword [esp + 0x44]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebx + 0x74]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
test esi, esi
jne 0x4dfb09
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi + 0x6c]
lea edx, [ebx + 1]
cmp dword [edi + 0x70], ecx
jg 0x4dfa55
push esi
push edx
push dword [esp + 0x1c]
lea edx, [esi + 5]
mov ecx, edi
call fcn.004959f0
add esp, 0xc
jmp 0x4dfa84
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x6c]
test ebx, ebx
jns 0x4dfa8e
lea ebx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4dfa9d
mov eax, 0x68632c
jmp 0x4dfaa6
mov eax, dword [edi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [edi + 0x6c]
cmp dword [edi + 0x70], esi
jg 0x4dfacf
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x74
mov ecx, edi
call fcn.004959f0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
call fcn.004ede70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret