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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x49d842
push eax
call dword [0x546584]
add esp, 4
mov edi, dword [ebx + 0x18]
cmp byte [edi + 9], 0
je 0x49d859
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x49d859
call fcn.00449e40
mov eax, dword [ebx]
cmp eax, esi
je 0x49d870
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x49d870
push eax
call dword [0x546584]
add esp, 4
mov edi, dword [ebx + 0x1c]
cmp edi, esi
je 0x49d885
cmp edi, 5
je 0x49d885
cmp edi, 6
jne 0x49e174
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], esi
cmp dword [ebx], esi
je 0x49d8b7
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x49d8b7
mov dword [ebp - 4], 5
jmp 0x49da6f
mov dword [ebp - 4], esi
cmp dword [ebx + 0xc], esi
jne 0x49d8ed
push 2
push ecx
call fcn.00490090
add esp, 8
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x49da6f
mov eax, dword [ebx + 4]
lea ecx, [ebx + 8]
push ecx
push 1
mov dword [ebx + 0xc], 1
call fcn.00456240
add esp, 8
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
jne 0x49da6f
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
je 0x49d914
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x49d914
call fcn.00449e40
mov al, byte [edi + 8]
cmp al, 2
je 0x49da4d
cmp al, 1
je 0x49da4d
movzx ecx, word [ebx + 0x16]
test cl, 0x40
je 0x49d943
mov edx, dword [ebx + 0x4c]
cmp dword [edx], esi
je 0x49d943
mov dword [ebp - 4], 0x106
jmp 0x49da4d
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x49d985
cmp dword [eax + 0x4c], edi
je 0x49d963
test byte [eax + 0x16], 0x20
je 0x49d963
mov dword [ebp - 4], 0x106
jmp 0x49da4d
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x49d985
mov edx, 1
nop
cmp dword [eax], edi
je 0x49d97e
cmp dword [eax + 4], edx
jne 0x49d97e
cmp byte [eax + 8], dl
jne 0x49d937
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x49d970
mov eax, ecx
and eax, 0xfff7
mov dword [ebp - 4], esi
mov word [ebx + 0x16], ax
cmp dword [ebx + 0x2c], esi
jne 0x49d9a0
or eax, 8
mov word [ebx + 0x16], ax
nop
cmp dword [ebx + 0xc], 0
jne 0x49d9b6
mov eax, ebx
call fcn.0048fdf0
mov dword [ebp - 4], eax
test eax, eax
je 0x49d9a0
jmp 0x49d9bc
cmp dword [ebp - 4], 0
je 0x49d9dc
cmp byte [ebx + 0x14], 0
jne 0x49d9dc
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x49d9dc
mov dword [ebx + 0xc], 0
mov eax, dword [eax + 0x44]
push eax
call fcn.0048f420
add esp, 4
cmp byte [ebp - 4], 5
jne 0x49da1a
cmp byte [ebx + 0x14], 0
jne 0x49da1a
mov esi, dword [ebx + 4]
add esi, 0x1bc
je 0x49da1a
mov ecx, dword [esi]
test ecx, ecx
je 0x49da1a
mov eax, dword [esi + 8]
test eax, eax
js 0x49da1a
mov edx, dword [esi + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x49da13
inc dword [esi + 8]
jmp 0x49d9a0
mov dword [esi + 8], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x49da4d
cmp byte [edi + 8], 0
jne 0x49da3f
inc dword [ebx + 0x28]
cmp byte [edi + 9], 0
je 0x49da3f
mov byte [edi + 0x28], 1
mov eax, dword [ebx + 0x48]
lea ecx, [edi + 0x20]
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x49da4d
mov byte [ebx + 0x14], 1
cmp byte [edi + 9], 0
je 0x49da5f
dec dword [edi + 0xc]
jne 0x49da5f
mov esi, edi
call fcn.00449e20
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 1
cmp dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], eax
jne 0x49daa6
cmp eax, 5
jne 0x49daa6
cmp edx, esi
je 0x49daa6
mov dword [ebp - 4], 8
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x49dabf
cmp dword [ebp - 0x18], eax
jge 0x49db2b
mov esi, dword [ebx + 0x10]
cmp esi, dword [ebp - 0x1c]
ja 0x49db2b
cmp dword [ebp - 4], 0
jne 0x49db70
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x546640]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x49db1e
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
push edx
push esi
mov eax, 2
call fcn.00481b80
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x49db1e
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 4]
push 0
push eax
push esi
push ebx
call fcn.0048c780
push edi
mov dword [ebp - 4], eax
call fcn.0048f420
add esp, 0x14
mov eax, 1
add dword [ebx + 0x10], eax
add dword [ebp - 0x18], eax
jmp 0x49dab3
cmp dword [ebp - 4], 0
jne 0x49db70
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
mov ecx, esi
sub ecx, eax
inc ecx
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x20], ecx
cmp eax, esi
ja 0x49db7d
cmp dword [ebx + 0x28], 0
jne 0x49dfd6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov dword [ecx + 0x2c], edx
mov dword [eax + 0x58], ecx
mov dword [ecx + 0x28], 1
jmp 0x49dfd6
cmp dword [ebp - 4], 0x65
jne 0x49dfd6
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x49dbd2
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp byte [esi + 9], 0
je 0x49db9d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x49db9d
mov edi, esi
call fcn.00449e40
mov ecx, dword [esi + 4]
mov dword [ecx + 0x2c], 0
mov ebx, dword [esi + 4]
call fcn.0048c1d0
cmp byte [esi + 9], 0
mov edi, eax
je 0x49dbc1
dec dword [esi + 0xc]
jne 0x49dbc1
call fcn.00449e20
mov dword [ebp - 4], edi
mov esi, 1
test edi, edi
je 0x49dbd2
cmp edi, 0x65
jne 0x49dbef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
inc eax
mov ecx, edx
push eax
mov eax, dword [ecx + 4]
mov ebx, 1
call fcn.0048c6e0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49dfd6
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x49dc07
call fcn.00463ea0
cmp dword [ebp - 0x30], 5
jne 0x49dc25
mov eax, dword [edi + 4]
push 2
call fcn.00492c50
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x49dfd6
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 8]
jge 0x49dc59
mov eax, dword [ebp - 8]
cdq
idiv ebx
mov ecx, eax
lea eax, [ecx + esi - 1]
cdq
idiv ecx
mov edx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x546640]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x49dc64
dec edi
jmp 0x49dc64
mov eax, ebx
cdq
idiv dword [ebp - 8]
mov edi, eax
imul edi, esi
cmp ebx, dword [ebp - 8]
jge 0x49df2a
mov eax, dword [ebp - 0x14]
cdq
mov ecx, eax
mov ebx, edx
push ebx
mov eax, esi
cdq
push ecx
push edx
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
call fcn.004bd3d0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x18], edx
mov ebx, edi
jmp 0x49dca0
cmp ebx, esi
ja 0x49dd10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x546640]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x49dd07
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
push edx
push ebx
xor eax, eax
call fcn.00481b80
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x49dd07
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x49dcf4
push edi
call fcn.0048b310
add esp, 4
jmp 0x49dcfb
mov eax, edi
call fcn.0048b160
push edi
mov dword [ebp - 4], eax
call fcn.0048f420
add esp, 4
inc ebx
cmp dword [ebp - 4], 0
je 0x49dca0
jmp 0x49dd28
cmp dword [ebp - 4], 0
jne 0x49dd28
mov eax, dword [ebp - 0x10]
push 1
push 0
call fcn.0048e890
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov esi, dword [0x546640]
mov ecx, dword [ebp - 0x28]
lea eax, [esi + edx]
cdq
cmp edx, ecx
jg 0x49dd48
jl 0x49dd43
cmp eax, dword [ebp - 0x2c]
jae 0x49dd48
mov dword [ebp - 0x34], edx
jmp 0x49dd4e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + ecx]
cdq
mov esi, eax
mov ebx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
jne 0x49dfd6
jmp 0x49dd73
mov ebx, dword [ebp - 8]
cmp ebx, dword [ebp - 0x34]
jg 0x49de9f
jl 0x49dd87
cmp esi, dword [ebp - 0x38]
jae 0x49de9f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x1c], 0
call fcn.004bb690
mov edi, dword [ebp - 0x20]
inc eax
push eax
xor eax, eax
call fcn.00481b80
mov edi, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x49ddd5
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push ebx
mov ebx, dword [ebp - 0x14]
push esi
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov dword [ebp - 4], eax
test edi, edi
je 0x49de84
test byte [edi + 0x18], 0x40
mov ebx, dword [edi + 0x10]
je 0x49de26
mov ecx, dword [ebx + 0x88]
dec dword [ebx + 0x78]
mov dword [edi + 0xc], ecx
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], edi
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x14]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004bd3d0
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push esi
call edx
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x49de2d
mov eax, edi
call fcn.00447820
cmp dword [ebx + 0x78], 0
jne 0x49de84
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x49de84
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x49de7f
test al, al
je 0x49de7f
cmp al, 2
jb 0x49de6d
mov eax, dword [0x54e76c]
test eax, eax
je 0x49de59
call eax
mov eax, ebx
call fcn.0048eff0
mov eax, dword [0x54e770]
test eax, eax
je 0x49de7f
call eax
jmp 0x49de7f
cmp byte [ebx + 4], 0
jne 0x49de7f
push 0
push 0
call fcn.00454780
add esp, 8
call fcn.0045d3c0
add esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
adc dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], esi
je 0x49dd70
jmp 0x49dfd6
cmp dword [ebp - 4], 0
jne 0x49dfd6
mov esi, dword [ebp - 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea eax, [ebp - 0x40]
push eax
push esi
call ecx
add esp, 8
test eax, eax
jne 0x49dee1
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x3c], ecx
jl 0x49dee1
jg 0x49ded1
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x2c]
jbe 0x49dee1
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
call edx
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x49dfd6
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], eax
je 0x49df12
mov eax, dword [ecx]
push 0
push 0x15
push ecx
mov ecx, dword [eax + 0x28]
call ecx
add esp, 0xc
cmp eax, 0xc
jne 0x49df0e
xor eax, eax
jmp 0x49df12
test eax, eax
jne 0x49df3c
cmp byte [esi + 7], 0
jne 0x49df3c
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x49df39
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.0048e890
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x49dfd6
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x49dfcf
cmp byte [edi + 9], al
je 0x49df64
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x49df64
call fcn.00449e40
mov cl, 2
cmp byte [edi + 8], cl
jne 0x49dfb8
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x49e0c8
cmp byte [esi + 0x10], cl
jne 0x49e098
cmp byte [esi + 4], al
je 0x49e098
cmp byte [esi + 5], 1
jne 0x49e098
mov byte [esi + 0x10], 1
dec dword [edi + 0x14]
mov ecx, dword [ebx + 0x3c]
push ecx
mov byte [ebx + 0x14], 1
call fcn.004474f0
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.004904a0
cmp byte [edi + 9], 0
je 0x49dfcf
dec dword [edi + 0xc]
jne 0x49dfcf
mov esi, edi
call fcn.00449e20
mov dword [ebp - 4], 0x65
cmp dword [ebp - 0x24], 0
je 0x49e155
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 2
jne 0x49e040
cmp byte [edi + 9], 0
mov esi, dword [edi + 4]
je 0x49e003
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x49e003
call fcn.00449e40
cmp byte [esi + 0x11], 0
je 0x49e012
call fcn.0049c5a0
test eax, eax
jne 0x49e02e
cmp byte [esi + 0x13], 0
je 0x49e020
mov edx, dword [esi]
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
push 0
push 0
call fcn.0048e890
add esp, 8
cmp byte [edi + 9], 0
je 0x49e040
dec dword [edi + 0xc]
jne 0x49e040
mov esi, edi
call fcn.00449e20
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
je 0x49e155
cmp byte [edi + 9], 0
je 0x49e061
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x49e061
call fcn.00449e40
cmp byte [edi + 8], 2
jne 0x49e13e
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x49e143
cmp byte [esi + 0x10], 2
jne 0x49e0f0
cmp byte [esi + 4], al
je 0x49e0f0
cmp byte [esi + 5], 1
jne 0x49e0f0
mov byte [esi + 0x10], 1
jmp 0x49e124
movzx edx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push edx
mov ebx, esi
call fcn.00454780
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x49e0be
cmp ecx, 0xa
jne 0x49e0c5
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49df9e
cmp byte [edi + 9], 0
je 0x49e0e5
dec dword [edi + 0xc]
jne 0x49e0e5
mov esi, edi
call fcn.00449e20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x49dfd6
movzx ecx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push ecx
mov ebx, esi
call fcn.00454780
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x49e116
cmp ecx, 0xa
jne 0x49e11d
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x49e143
dec dword [edi + 0x14]
mov edx, dword [ebx + 0x3c]
push edx
mov byte [ebx + 0x14], 1
call fcn.004474f0
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.004904a0
cmp byte [edi + 9], 0
je 0x49e155
dec dword [edi + 0xc]
jne 0x49e155
mov esi, edi
call fcn.00449e20
cmp dword [ebp - 4], 0xc0a
jne 0x49e165
mov dword [ebp - 4], 7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1c], ecx
mov edi, ecx
mov ebx, eax
xor esi, esi
mov eax, dword [ebx]
cmp eax, esi
je 0x49e18b
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x49e18b
push eax
call dword [0x54658c]
add esp, 4
mov esi, dword [ebx + 0x18]
cmp byte [esi + 9], 0
je 0x49e1a1
dec dword [esi + 0xc]
jne 0x49e1a1
call fcn.00449e20
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x49e1b5
push eax
call dword [0x54658c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret