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

Disassembly:
sub esp, 0x2f0
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x2ec], eax
mov eax, dword [esp + 0x2f4]
push ebx
push ebp
push esi
movzx esi, byte [eax + 2]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x130c]
cmp esi, ecx
mov dword [esp + 0x28], edi
jg 0x46e105
mov bl, byte [eax + 5]
lea ebp, [eax + 5]
mov dword [esp + 0x1c], ebp
cmp bl, 0x18
jae 0x46e105
movzx ebp, byte [eax + 3]
cmp ebp, ecx
jg 0x46e105
mov dl, byte [eax + 6]
mov byte [esp + 0x17], dl
cmp dl, 0x18
jae 0x46e105
movzx edx, byte [eax + 4]
cmp edx, ecx
jg 0x46e105
mov al, byte [eax + 7]
cmp al, 0x18
jae 0x46e105
lea ecx, [esi + esi*2]
movzx esi, bl
lea ecx, [esi + ecx*8]
mov esi, dword [edi + ecx*4 + 0x1c0]
mov dword [esp + 0x5c], esi
test esi, esi
je 0x46e105
movzx ebx, byte [esp + 0x17]
lea ecx, [ebp + ebp*2]
lea ecx, [ebx + ecx*8]
mov ecx, dword [edi + ecx*4 + 0x1c0]
mov dword [esp + 0x60], ecx
test ecx, ecx
je 0x46e105
movzx eax, al
lea edx, [edx + edx*2]
lea edx, [eax + edx*8]
mov eax, dword [edi + edx*4 + 0x1c0]
mov dword [esp + 0x64], eax
test eax, eax
je 0x46e105
cmp esi, ecx
je 0x46e105
cmp esi, eax
je 0x46e105
cmp ecx, eax
je 0x46e105
mov bl, byte [esi + 0x68]
cmp bl, 0x51
je 0x46e0df
cmp byte [ecx + 0x68], 0x51
je 0x46e0df
mov dl, byte [eax + 0x68]
cmp dl, 0x51
je 0x46e0df
cmp bl, 0x42
je 0x46e0be
cmp byte [ecx + 0x68], 0x42
je 0x46e0be
cmp dl, 0x42
je 0x46e0be
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx]
mov edx, dword [esi + 0x30]
cmp dword [edx], ecx
jne 0x46e09d
mov eax, dword [eax + 0x30]
cmp ecx, dword [eax]
jne 0x46e09d
mov eax, edx
cmp byte [eax + 0x4a], 0
je 0x46e09d
movzx eax, word [eax + 0x3e]
test ax, ax
jbe 0x46e09d
cmp ax, 0x64
jae 0x46e09d
call fcn.004116d0
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
je 0x46e105
mov ecx, dword [esi + 0x30]
push 0x43
mov dword [ebx + 0x30], ecx
mov esi, dword [esi + 0x30]
push ecx
call fcn.004e1a50
movzx edx, byte [esi + 0x25]
add esp, 4
push eax
movzx eax, byte [esi + 0x24]
push 1
push edx
push eax
mov eax, ebx
call fcn.004d21c0
call fcn.00464840
mov esi, ebx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
call fcn.004d24c0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
lea ebp, [esp + 0x5c]
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], 3
jmp 0x46db38
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax - 3]
movzx eax, byte [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x46dbb6
mov esi, dword [ebp]
mov dx, word [edi + eax*2 + 0x1a6]
cmp dx, word [esi + 0x44]
je 0x46db93
mov edx, dword [edi + 0x582c]
mov ecx, 0x70c
mov word [esp + 0x50], cx
push 9
lea ecx, [esp + 0x54]
mov dword [esp + 0x56], edx
mov byte [esp + 0x5a], al
mov ax, word [esi + 0x44]
push ecx
mov ecx, dword [0x58796c]
mov word [esp + 0x5f], ax
call fcn.004ed2d0
mov eax, dword [esp + 0x18]
xor edx, edx
mov word [edi + eax*2 + 0x1a6], dx
push eax
mov ecx, esi
mov edx, edi
call fcn.00461d10
mov esi, edi
call fcn.00460e40
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx*2]
lea edx, [eax + edx*8]
mov dword [edi + edx*4 + 0x1c0], 0
test ecx, ecx
jne 0x46dbe2
cmp eax, 8
jge 0x46dbf1
push eax
mov ecx, edi
call fcn.00492c00
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
jmp 0x46dbf1
cmp dword [esp + 0x24], 0
jne 0x46dbf1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov ebp, dword [ebp]
mov edx, 0x702
mov word [esp + 0x40], dx
mov edx, dword [edi + 0x582c]
mov byte [esp + 0x46], cl
mov byte [esp + 0x48], 0
push 9
lea ecx, [esp + 0x44]
mov dword [esp + 0x46], edx
mov byte [esp + 0x4b], al
mov al, byte [ebp + 0x42]
push ecx
mov ecx, dword [0x58796c]
mov byte [esp + 0x50], al
call fcn.004ed2d0
lea esi, [esp + 0x250]
mov byte [esp + 0x2dd], 0
call fcn.00467f60
mov edx, 0x402
mov word [esp + 0x250], dx
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x2a7], eax
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x2ab], ecx
mov edx, dword [ebp + 0x30]
mov eax, dword [edx]
mov dword [esp + 0x2af], eax
mov eax, dword [ebp + 0x30]
add eax, 4
lea esi, [esp + 0x2b3]
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi], cl
inc eax
inc esi
test cl, cl
jne 0x46dc80
mov cl, byte [esp + 0x20]
mov dl, byte [esp + 0x18]
mov byte [esp + 0x2f3], dl
mov byte [esp + 0x2f2], cl
mov eax, dword [ebp + 0x46]
mov dword [esp + 0x2d3], eax
mov cx, word [ebp + 0x4a]
lea eax, [ebp + 0x4c]
lea edx, [esp + 0x2dd]
mov word [esp + 0x2d7], cx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46dcc2
mov edx, dword [ebp + 0x64]
mov dword [esp + 0x2d9], edx
movzx eax, byte [ebp + 0x42]
push 0xa5
lea ecx, [esp + 0x254]
push ecx
mov ecx, dword [0x587974]
mov byte [esp + 0x2fc], al
call fcn.004ed210
movzx eax, byte [esp + 0x20]
mov cl, byte [esp + 0x18]
mov edx, 0x206
mov word [esp + 0x38], dx
push 7
lea edx, [esp + 0x3c]
mov byte [esp + 0x3f], cl
mov ecx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x42], al
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 0
call fcn.004ed0e0
mov eax, dword [ebp + 0x38]
mov esi, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x3c]
mov edi, ebp
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.00411710
add dword [esp + 0x30], 4
mov edi, dword [esp + 0x28]
mov eax, 1
add dword [esp + 0x34], eax
add esi, 8
sub dword [esp + 0x1c], eax
mov dword [esp + 0x4c], esi
jne 0x46db30
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax*2]
lea edx, [ecx + edx*8]
mov dword [edi + edx*4 + 0x1c0], ebx
mov byte [esp + 0x87], al
mov byte [esp + 0x86], 0
mov byte [esp + 0x88], cl
mov edx, 0x807
mov word [esp + 0x84], dx
mov al, byte [ebx + 0x40]
mov byte [esp + 0x89], al
mov cl, byte [ebx + 0x41]
mov byte [esp + 0x8a], cl
mov dx, word [ebx + 0x44]
mov word [esp + 0x8b], dx
mov eax, dword [ebx + 0x46]
mov dword [esp + 0x8d], eax
mov cx, word [ebx + 0x4a]
mov word [esp + 0x91], cx
mov dl, byte [ebx + 0x42]
mov byte [esp + 0x93], dl
lea ebp, [ebx + 0x4c]
lea edx, [esp + 0x94]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46ddf2
push 0x25
lea eax, [esp + 0x88]
push eax
mov ecx, edi
call fcn.004ed0e0
lea eax, [esp + 0xac]
call fcn.00468080
mov edx, dword [edi + 0x582c]
mov dword [esp + 0xae], edx
movzx edx, byte [esp + 0x24]
mov ecx, 0x701
mov word [esp + 0xac], cx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
movzx eax, byte [esp + 0x2c]
mov byte [esp + 0xbe], dl
mov byte [esp + 0xbf], al
mov dword [esp + 0xba], ecx
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0xb2], ecx
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0xb6], edx
movzx eax, byte [ebx + 0x40]
mov byte [esp + 0xc0], al
mov cl, byte [ebx + 0x41]
mov byte [esp + 0xc1], cl
movzx edx, byte [ebx + 0x42]
mov byte [esp + 0xc2], dl
mov ax, word [ebx + 0x44]
mov word [esp + 0xc3], ax
mov ecx, dword [ebx + 0x64]
mov dword [esp + 0xe0], ecx
movzx edx, byte [ebx + 0x68]
mov byte [esp + 0xe4], dl
mov eax, dword [ebx + 0x46]
mov dword [esp + 0xc5], eax
mov cx, word [ebx + 0x4a]
lea edx, [esp + 0xcb]
mov word [esp + 0xc9], cx
mov eax, ebp
sub edx, ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46ded0
mov ecx, dword [0x58796c]
push 0x39
lea edx, [esp + 0xb0]
push edx
call fcn.004ed2d0
lea esi, [esp + 0x1a8]
mov byte [esp + 0x235], 0
mov byte [esp + 0x24a], 0
call fcn.00467f60
mov eax, 0x401
mov word [esp + 0x1a8], ax
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x1ff], ecx
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x203], edx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x207], ecx
mov eax, dword [ebx + 0x30]
add eax, 4
lea edx, [esp + 0x20b]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x46df45
mov edx, dword [ebx + 0x46]
mov dword [esp + 0x22b], edx
mov ax, word [ebx + 0x4a]
mov word [esp + 0x22f], ax
mov ecx, dword [ebx + 0x64]
lea edx, [esp + 0x235]
mov dword [esp + 0x231], ecx
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46df80
mov ecx, dword [0x587974]
mov byte [esp + 0x24a], 2
mov dl, byte [ebx + 0x42]
push 0xa4
lea eax, [esp + 0x1ac]
push eax
mov byte [esp + 0x253], dl
call fcn.004ed210
lea esi, [esp + 0xe8]
mov byte [esp + 0x175], 0
call fcn.00467f60
mov ecx, 0x429
mov word [esp + 0xe8], cx
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x13f], edx
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x143], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
mov dword [esp + 0x147], edx
mov eax, dword [ebx + 0x30]
add eax, 4
lea edx, [esp + 0x14b]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x46e002
mov eax, dword [ebx + 0x46]
mov dword [esp + 0x16b], eax
mov cx, word [ebx + 0x4a]
mov word [esp + 0x16f], cx
mov edx, dword [ebx + 0x64]
mov dword [esp + 0x171], edx
lea edx, [esp + 0x175]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46e037
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x18a], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18e], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x196], eax
mov dword [esp + 0x192], edx
mov edx, dword [esp + 0x7c]
push 0xba
lea eax, [esp + 0xec]
mov dword [esp + 0x19e], ecx
mov ecx, dword [0x587974]
push eax
mov dword [esp + 0x1a6], edx
call fcn.004ed210
jmp 0x46e105
mov ecx, 0x807
push 3
lea edx, [esp + 0x88]
mov word [esp + 0x88], cx
mov byte [esp + 0x8a], 1
push edx
jmp 0x46e0fe
mov eax, 0x807
push 3
lea ecx, [esp + 0x88]
mov word [esp + 0x88], ax
mov byte [esp + 0x8a], 3
push ecx
jmp 0x46e0fe
mov edx, 0x807
push 3
lea eax, [esp + 0x88]
mov word [esp + 0x88], dx
mov byte [esp + 0x8a], 2
push eax
mov ecx, edi
call fcn.004ed0e0
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x2f0
ret 4